import pluginVue from 'eslint-plugin-vue';

export default [
  { ignores: ['node_modules/**', 'dist/**', '.git/**', '*.log'] },
  ...pluginVue.configs['flat/recommended'],
  {
    files: ['**/*.vue', '**/*.js'],
    languageOptions: {
      ecmaVersion: 'latest',
      sourceType: 'module',
    },
    rules: {
      'no-unused-vars': 'warn',
      'no-undef': 'warn',
      semi: ['error', 'always'],
      quotes: ['error', 'single'],
    },
  },
];
